package exam3;

public class Page {
    private int pageNum;
    private int signal;
    private int memoryNum;
    private int modifySignal;
    private int diskNum;

    public Page(int pageNum, int signal, int memoryNum, int diskNum) {
        this.pageNum = pageNum;
        this.signal = signal;
        this.memoryNum = memoryNum;
        this.diskNum = diskNum;
    }

    public int getPageNum() {
        return pageNum;
    }

    public int getSignal() {
        return signal;
    }

    public void setSignal(int signal) { this.signal = signal; }

    public int getMemoryNum() {
        return memoryNum;
    }

    public void setMemoryNum(int memoryNum) { this.memoryNum = memoryNum; }

    public int getDiskNum() {
        return diskNum;
    }

    public int getModifySignal() { return modifySignal; }

    public void setModifySignal(int modifySignal) { this.modifySignal = modifySignal; }

    @Override
    public String toString() {
        return "Page{" +
                "pageNum=" + pageNum +
                ", signal=" + signal +
                ", memoryNum=" + memoryNum +
                ", modifySignal=" + modifySignal +
                ", diskNum=" + diskNum +
                '}';
    }
}
